Fixed key checking
1.0.1