on models loaded error fixed