Fixed conversion to phpng mistakes