i think this assert can be placed after the hooked check
add this for the assert changes