fix for https://ggus.eu/index.php?mode=ticket_info&ticket_id=107429