fix loaded check