Fixing variable definition