Fix basepath