Fixed assert error