added assertion but commented due to issue 3826