Fixed critical bug showing qend, send erroneously

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>