small bug fixed in DynamicController