offsetSet bug fixed