fixed phils bug