Fixed small bugs concerning model/filling and render mode.