Bugfix in frame representation (not finished)