ugly but fixes it for now