Fixed wrong replace pattern