Fixing error with compatibility with Interface