Fix typo in foundation core rtl support, start porting clearing.