diff --git a/b_asic/schedule.py b/b_asic/schedule.py
index a5f298f84b007a4b6f78edcbd3f85c1554f9ad2a..b07d41d53492b4416e1dbc22809cf7c04f0e3543 100644
--- a/b_asic/schedule.py
+++ b/b_asic/schedule.py
@@ -411,7 +411,7 @@ class Schedule:
                     self.set_y_location(gid, self.get_y_location(gid) + 1)
         self.set_y_location(graph_id, new_y)
         used_locations = {*self._y_locations.values()}
-        possible_locations = set(range(max(used_locations) + 1))
+        possible_locations = set(range(round(max(used_locations)) + 1))
         if not possible_locations - used_locations:
             return
         remapping = {}