remove group#edit to close #603
make the check cleaner, make sure the variable is defined