Fixed an error where the descriptor wasn't being generated correctly.