Fixed hlint warnings/errors.