fixed a bug where warning is sent to next user