handled a bug with variable