Fixed package environment mismatch on DEFINE-IMPLEMENT-HOOK