fixed an issue with error