fixed issue where callback was not used