Error captureStackTrace fix