fixes filepath