Fixed a bug in mananaging NSOperations