fixing bool type