Referencing invalid id; fix #1