okay this was the real problem

deleting collapsed code is not advisable