Fixed crash on no location selected error