Correct update condition in update_phi kernel