fix typo and quell PHP notice