fix frame calculations
Release 2.0.5