fix #with bug when var is false