fix useless variable assignment