Fix overflow auto bug