fix prepared statement