Fixed possible errors shown via Eclipse.