Fixed small bug in View Factory