fix phoe code