fix variable problem