fixed view bugs