Fixed bug in dynmaic declare funciton