fixed bug which prevented view objects from loading