changed condition so the chosen projects should now work correctly