repaired fancy bug