Nothing is wrong with your code. THat is because of clash between bidi and tikz. Please report this on tikz mailing list
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex