Fix the bug in scalastyle checking