fixed issue with key init