fix errors in add_configuration macro