Bug fix. Led function