Fix for typerror