fix for early optional paramters

for example if we have first parameter optional controller will send second argument as first