fixed funny tab bug reported by FROGGS++