fix original code logic
fix original code logic

yunstanford/sanic,r0fls/sanic,channelcat/sanic,jrocketfingers/sanic,yunstanford/sanic,r0fls/sanic,lixxu/sanic,channelcat/sanic,lixxu/sanic,jrocketfingers/sanic,ashleysommer/sanic,yunstanford/sanic,yunstanford/sanic,lixxu/sanic,channelcat/sanic,ashleysommer/sanic,Tim-Erwin/sanic,Tim-Erwin/sanic,lixxu/sanic,ashleysommer/sanic,channelcat/sanic