bugfix in x11
reoder some lines
add comment