bug fix

thanks to procksha