Fixed issue with allocating to little memory for the insets.