Didn't set or clear the keys correctly