[Fix] Fixed type replacement