fixed bug that occured with == to === replacement