remove an ugly hack related to resource location.