Changed chmod -x to chmod 755