really fixed segmentationfault