Fixed a macro clash on SNONE. Added a safety check on named color lists
Fixed a possible segmentation fault in a non-happy path