fixed weird assignment