Welp bit of a hack but fixes it