Fixed #1 'Instead of frame bounds should be used' by Igor Palaguta