remove .o file and small bug fix