Fix set and get with different sizes