Fixed errors with pipe execution