correcting some minor bugs with variables that should be preset on the model