fixed a bug (uapply should still be inlined)