fixed issues with plots