[fix] fn_apply handle 0 length