fixed glitch on devices below 3.0 as well as a possible glitch on
devices below 4.0