workaround due to https://gist.github.com/loicfrering/c7ce065f19435cef40fc