Fix for desktop sample