added fix to type