Fixed TaskPrepare() hook lock-down