Handle sides correctly