fix reserved parameters are not replaced every time