Fix some bugs in the Slim renderer when converting to Extensions