fix a key corner case