Solved it. I needed to enter
sudo crontab -e
instead of
crontab -e
Because what I forgot was that it doesn't open the same file. One as the active users cron jobs and the other as the root cron jobs.