Fix callbacks FFI