[FIX] fixed an error that might arise if empty cluster are created