fixed an internal bug