fixed a problem with initial messge types.