correct bad code.