Mac OS bundle bug fix