fix #11, shadow offset truncate issue