fixes waypoints dependency when DEBUG_STATIC is set.

Minor bug fix, occurs only when DEBUG_STATIC=True