Fixed some php fails