fixed placement of readers semaphore