Fix condition on interface type