added fix to stop errors in automatic test