fixed NPE in Cardea (closes #33)