fixed init problem with style