Fixed passing Closure as parameter to minMaxHandler.