fixes hasKey issue for PS 1.4.9