fix for conditional display of message only