Fix small bugs such as not guessing self, profile keywords going out of bound