fixing not working align directions