fix deprecated NSVariableStatusItemLength