fixed missing entity reference when determining hook areas