This fixes "Using a hash as a reference is deprecated" warning