Fix for Jade error handling