fixed bug when no y2axis was present