Fixed a couple potential issues with publishing to PHP