fix the bug found by checkstyle