fix decorator warning