PHP Flow fixed