Removed unnecessary lines and fix build.