fixed issue with wrong type loaded