fixed segfault, integers work