fix bug I thought I had already fixed