fixed small bug in warning