Fixed problems in accessing parameters