fixed an issue with .nil