fixed bug in view and examples