fix an obscure and annoying php referencing issue