Bugfix: use self instead of global variable
Lookup the segment for a given address