fixed double-error