Minor bug fix in cage module management