fixed group() method to be compatibile with Nette 2.1