Fixed slight padding on matrix inputs