fixed a small bug where text color got lost after 1 refresh