small bug fixes when no main