Fix incorrect type detection
Release 3.0.1