[FIX] fixed invalid memory access introduced in commit ea0ad0014
[RELEASE] v 0.4.0