Fix missing frame bugs; github issue #17