fix some minor bugs in lomb scargle