fix integer for memory values