Workaround for multiple-cursors bug