fixed bug with fillgmedb