Fixed maxes getting set to 0 and margin in some places.