fix Location constant not found