minor fix on websql implemenation