Fixed missing argument to handle_rules