fix variable issue