fixed passing wrong semaphore id and changing room