Fixed inst lookup bug