hlint warning fixed