Fixed bugs in collecting semaphores, added ignoring fops which missing