Fixes crash on the 'Applications' sample project