How to stop object value from depreciating?