Fix assertion methods.