The problem is that you reset this value later...