fixed bug in fragmented AGP reading