fixed initpy's error