Fixed bad handles error.