fix for view mode