Fixed frame NullPointerException