Made the xss hash more robust