fix some bug for variable view