fixed double-word bug