Fix init and readonly issue Nan ran in to