Fixed a bug with buying and changed a potential logic error in create