Unable to rearrange conditions to change priority