fix color coding steps to avoid warnings on an empty table