xmas segfault bugfix (sorry... it was my fault :( )