Fix for #1773: Double error on dynamic block
Test for #1773: Double error on dynamic block