fix task record loading bug (resource not registered)