Avoid assertionerror