Hack to prevent crash