fixed some things breaking because of empty lists, fixed rectangle display bug.