Fixing phreak errors