added ribbon resize policy problem handling