Fixed bug for empty model files