Fixed black frame bug