Fix a bug in shape table generation.

Should stop some crashes with low FLX_MIN_MEM
but it should work from 0 and still doesn't.
So there are more lurking pests in there ..