fix sql 3.0 (sql hates me :( )