fix bug with wrong