Bugfix: correctly load data type