Wrong port postion on creation on states/modes
Actual behavior:
If ports are created on states/modes, they do not appear where they were
dropped.
Expected behavior:
Ports should appear at the position where they were dropped.
(from redmine: issue id 3973, created on 2020-03-23, closed on 2020-03-30)