Fixed stack allocation

Fixed Stack allocation, don' use malloc, evar!!!!!!!!!!111
Staging shit for netbeans