Corrected 'dynamic constant assignment' error