Adding workaround for when JPhantom fails