Remove warnings on code