Fixed bug of onUpdated event