typo fix and segfalt