Pek1d bug fixes