Bugfix integration functions

Signed-off-by: Dustin Ngo (MacBook) <dustin.ngo@gmail.com>