Fixing errors and changed the portalblock