fix bounce checking