Fix for Erlang R16B01

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Merge pull request #112 from lemenkov/R16B01

Fix for Erlang R16B01