Removed Mark.detach(). Use detach() instead.