Fixed conversions of action parameters to int.