fixed invalid interface generation