Fixed unexpected replacing when callback is named function