fixed bug with wrong parameter