fixed -sem not passed in bug