Platform check was used twice when linking