avoid key error