undo a dirty hack