fixed an issue in previous commit