fixed binding problem; perhaps adding record in the fetch function