fixed error with put and get operation (wrong offset for primitive types)