fixing find lesson by id query