Fixed some intellij warnings.