fix small oversight in getScheme() to make it handle negative indices