fix some error for QuartzCore.