fix for #4399, removing unused variables