fix class load order