Fix some problems found by intellij

3 jobs for linting/backend in 17 minutes and 12 seconds (queued for 1 second)