single table inheritance fix