Error fixing for platform abstraction.