fixes bug introduced in last version