Fix issues in tsc bool => boolean