0.5.3: Fix getBestType detect callback.