Fixes condition to process message