BXE: changes sp_state back to a long