Small bug in the fast_replace routine fixed