fix bug for clicking to red