bug fixed: not replacing message