Page model doesn't working inside file hook

what interference could that be? i just did that and want to avoid major bugs in panel…