fix else bracket, add detection from computed styles