error case in buy