Fixing uneven offset bug