Fixed some hlint warnings.