Fixing basic quark sec-group bugs