Change default mode to 0x01FF

0x0FFF is 7777, not 0777