erlang:apply/3 is always unsafe