Fixed some things with the getcapabilites.