fix assignment to just declared vars