fix bad typing coding