fpermissive error fixes