Fixed if for records