Fixed a minor issue where  isn't in scope

Hi!

Nice module! I think you should use wire()->page instead of $page when using in a function because of the scope.