Fixing phreak errors
(cherry picked from commit 9e16ec52af558bbe54a2bd4456fd1bf6ff975988)