fix bug (error issues)