Fixing initialization issues on small frame sizes