Fix bug for over-written variable in case of nested views