fix bug, missing parameters