fixed error handeling on date and selling stuff