Fixed bug in reapr pipeline