039.11 Merge tinyg code; Fixed X direction mistake