fixed an issue which caused layers with spaces to not expand.
Removed extra console log.