fixed an scatter bug