Fix platform case statement