Fix a compdef initialization bug