Fixed an issue in the type selector.