Correct fix for the tsk_loaddb issue in #321