bugfix prepared statements