Fix error with key