Fixed Bug #7439

Special Thanks to Wend.
http://hercules.ws/board/tracker/issue-7439-queue-system-error/

Signed-off-by: shennetsind <ind@henn.et>