fix bug

this fixes the thrown error!