Fixed assert dependent errors.