fix crash in #52