fix alignment memory issue; like ukkonen one