fixed bug of writing programmer path to wrong location