Do not use unitialized variable and remove duplicated line