small check causing error on loading