Something wrong with If ( ) statement