fix for position length