Fixed append and prepend

when animate was set to false, append and prepend were failing