Fixed minor bug in View class.
Fixed multiple-import bug in plugin API