Fixes main chart positioning.