Fixed some warning messages.