Fix mx mechanism when no records are returned