fix thread problem and give a ico file