Fix for error when using another table name