fixed view being rendered incorrectly