fixed check for key