fixed a bug in knock