fix the problem with the main frame
tests