bugfix: throw error instead of illegal return statement