Fix compatibility with old projects