Fixing eclipse errors