Fix TypeError on -dev