Fixed errors causing long view creation