fixed overflowbug