Fix bug on getPointTypes