fixed minor display/statswrite bugs