fixed for sql map