fix variable conversion