Fixed undefined check on expIds