handle invalid location