fixed bug in method "getView"