Fixed bug in logger serializing only one position