fixed redundant ifdef DEBUG and STAssert instead of NSAssert