fix sloppy bug