Fixed warnings occurring in error logs.