fix crash in quickpreview on 2.3