Update AMCObject.m

Fix iOS8 bugs.