Fixed an issue with asserts not failing