Bug fix: Error when using anonymous functions for mod pages