Fixed #161

Updated error handling in View package