Fixed minor problems reported by IDEA.