fixed free spots claculation

Merged Michal Čížek requested to merge free-spots-fix into main

Merge request reports