You don't get double taxed, you get taxed on your salary and your company gets taxed on whatever profit remains after paying salaries.