Fixed function to change ace to one when needed