fix missing # and changed mode to a+x