Fixing wrong syntax for variable expansion