Arduino Yun loses sketch when powered down(solved)

Fixed!

I was still using the 1.5.5 IDE. After downloading the new IDE (1.5.6.r2), the sketch now works perfectly.

I wonder what caused it tho...