Note that this was working correctly only with default RAM offset. In uint32 field (x - 2^31 - 2^31) is equal x.