Fixed some vm errors in gbase and made redirect on save