try to fix variables bug