scope does not update properly