Fixed issue on datatypes loading
PATCH for issue #1976