Remove syntax error in location block