Fixed bug with the effects