fixed a couple small model bugs