Fixed bug in xsession