fix for improper viewable check