fixes -o option, had to cast int for Offset