fixed a bug when no context vars are provided