fix usage of string instead of variable