fixed case where get-key returns None