Properly set position rank in form