fixed control qty bug