Fixed using pointer instead of default