Fix for appendslashes