semi bug fixes