bug fix for Alex