Working as it should now. Restored the edited file and put permissions back as they were and its still working. Dont know what the problem was.