Set SP correctly