fix php problems