fixed if statement condition

Some identation fixes by eclipse also.