got it finally working. No more bus errors.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>