Fixing imporoper call to function.call for when a view diesn't exist