Fix failed replace all operation