Fix small bug for erlang:apply/3