bug in key reader