pek1d bug fixing