Fix: error when panend is called 1st