fixed bug in mkdir