# Bug: Custom.ts would sometimes change the main.ts code into the custom.ts

**URL:** <https://forum.makecode.com/t/bug-custom-ts-would-sometimes-change-the-main-ts-code-into-the-custom-ts/6365>\
**Category:** Help\
**Created:** [February 25, 2021, 6:19pm UTC](https://forum.makecode.com/t/bug-custom-ts-would-sometimes-change-the-main-ts-code-into-the-custom-ts/6365 "2021-02-25T18:19:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 25, 2021, 6:19pm UTC](https://forum.makecode.com/t/bug-custom-ts-would-sometimes-change-the-main-ts-code-into-the-custom-ts/6365/1 "2021-02-25T18:19:13Z")

</div>

I do not know how to replicate, but it just did that and I lost my project. I was about to save it, but I could not in time.
