Fixed bug of update attributes from collection with conditions.