Fixed Bug #7497

Special Thanks to shenhuyong, kyeme.
http://hercules.ws/board/tracker/issue-7497-iditem-idq/

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