Fixes a few minor warnings