Fix platform reference error