Fix a bug in --green option