fix rpm bugs