Fixed runtime pipeline to apply pipeline in correct order