Fix single table inheritance