Make Erlang happy about variable scope