fix prepare statment