Fix parse integer (values are always passed as duble in json)