Fixed bug with effects