remove replacestate