fix crash on unlinked program