narrowing bug fix for linux