Fixed older Delphi compatibility