Fixes liquid error

Liquid error from complex tags and loops