small bug fixes.