fixed bug with replace all