Fixed bug with offset percentage