Fix bug in variable