Fixed small bad coding practices.