fixed bug with %h not correctly being mapped