fixed php and moz bugs