fix redundant variable