tempoary fix for stackoverflow crash