Fixed hlint warnings.