view fix for nil location variable