fixed stop() bug