Fixed obsolete compiler warning