Fixed bug.

To replicate: use variable "fg".