fix stupid behavior in the template about the php