Fix bugs of quick-x module

But it can not be used in other libs if you don't export it.