local variable dataModel wasn't reloaded when component rendered in a loop