Fixed bug mentiond in report #3346

The suggestion mentioned in the bugreport has been applied in order to speed up the review and fixing process.