fix bad code smell on editors