fix bug in binding to view function args