Fixed bug in plugin inView