fixed bug in buymanager