Fixed missing assert