[ctrlLib]: median computation fixed