That's right, it's probably the air, which is not really safe. I suggest you to bleed the brakes as soon as possible. If you have some technical skills and some spare time you can do it by yourself otherwise just take it to a shop, it's quite a common procedure. You can check some instructions in this article Why is it important to do a brake fluid flush?