fix setting bug that prevent it from saving it dynamically