fix extraneous `else'