fixing bug with phantom runtime