Fix #5  Wrong panel size sometimes (happens randomly)