Some bugs on XO fixes

Signed-off-by: Daniel Francis <francis@sugarlabs.org>