Small bug fix for printing warnings and errors.
Another small fix.