Fix bug when add scenario item in Mac OS X