Fixed bug in view preloading