bugfix - replacing parameters over 999 limit