Fix function table masks