Prevent x-session errors