fix compilation based on new fastreplace