fixes bugs with fade