fixing not-logged-in-counts
fixing always buy or sell