removed some warnings

When looking at the new message format PR found some warnings in the code this PR fixes these.