fix bug where css wasn't showing at times