Fixed empty model bug