fixed "double bounce" bug