Fixed relacement bug.