fix genpath