Fixes a bug with the view not being able to be reset