Fixed hanging }else{ left after last mods