Fixed bug with void return type