Fixed issues with single function version of lcapply