fix bug with blocking video in Release mode