Bug fix : messages were not logged on states (...)