Fixed directory creation error