Release build not working, Debug build working