Fix derive type