fixed error propagation in takeLast operator