fix and improve cosmetic error