Fix to phases edit