added functions to fix the shitty base position deserialization from messages