fix invalid assign (thx to Ax3l)