Fixing bug in printing of model