Fixes bug in instance declaration.