Fixing a bug on modalPresentationStyle