fremap: get rid of broken 'end' variable