fix warning for no statement in if-fi block