replace with copyProperties

update caused by react-router's change