fix path method.