Fix profile to always return callback function