fixed ackgrat bug