fix a bug which occured due to a NaN in the models fix: #6