fixed an assert