bugfix in sorting frames