Fixing illegal offset issue.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>