bugfix: missing SQL fragment