small bug correction (when key is empty)