fix bug handling MAGIC_FOOT with big data