fixed a possuble porting issue
a fix for my fix
attempt number 3