fixes for php