Fixes #1226, no idea how