fixed some issues with prepared statements